Rust optimizations
Achieving warp speed with Rust
https://gist.github.com/kvark/f067ba974446f7c5ce5bd544fe370186
http://troubles.md/posts/rust-optimization/
【翻訳】Rustにおけるパフォーマンスの落とし穴
https://codom.hatenablog.com/entry/2017/06/03/221318
Rust Performance Pitfalls
https://llogiq.github.io/2017/06/01/perf-pitfalls.html
Improve your algorithms
remember that every use of collect has to iterate over the entire collection at least once
https://en.wikipedia.org/wiki/Central_processing_unit#Structure_and_implementation
diffirent computer -> RAM -> CPU cache
you should avoid indirection-heavy representations Vec<Vec<_>> to represent a matrix, since this means that each sub-vec will likely be in a different location.
Essentially, the less pointers you have to write at runtime the better. Writing to local variables is better than writing through a mutable pointer. As much as possible, you should try to constrain mutable writes to the data that you have ownership over. So a mutable loop counter is fine, but passing a mutable reference to a loop counter through multiple layers of functions is not (unless they end up getting inlined, of course).
Rust Performance: A story featuring perf and flamegraph on Linux
https://blog.anp.lol/rust/2016/07/24/profiling-rust-perf-flamegraph/
https://github.com/rust-lang/rust-clippy
https://github.com/bheisler/criterion.rs
Rustの3種のべき乗演算の速度差について
https://qiita.com/tatsuya6502/items/d50e4b131130aa5b5ab6
#Cryptography